package cn.dengta.webapp.user.service;

import java.util.Date;

import cn.dengta.common.model.TimeInterval;
import cn.dengta.webapp.base.service.RemoteBaseService;
import cn.dengta.webapp.user.entity.RecExposureLog;
import cn.dengta.webapp.user.entity.RecExposureLog.ExposureType;
import cn.dengta.webapp.user.entity.User;

/**
 * 曝光购买日志记录 服务类
 *
 * @author lgy
 * @since 2022-04-19
 */
public interface RemoteRecExposureLogService extends RemoteBaseService<RecExposureLog, Long> {

	RecExposureLog log(User operator, ExposureType type, Long logId, Integer minute, Date now);

	RecExposureLog log(RecExposureLog input);

	boolean exist(Long userId, ExposureType type, Long logId, Integer status, TimeInterval addTimeInterval);

	int count(Long userId, ExposureType type, Long logId, Integer status, TimeInterval addTimeInterval);

}
